package cn.edu.niit.alienlab.jshttplessonserver.service;

import cn.edu.niit.alienlab.jshttplessonserver.dao.ActorInfoDao;
import cn.edu.niit.alienlab.jshttplessonserver.domain.ActorInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ActorInfoService {

    @Autowired
    ActorInfoDao actorInfoDao;


    public List<ActorInfo> selectActorInfoByMovieId(Integer movie_id) {
        List<ActorInfo> list = new ArrayList<>();
        list = actorInfoDao.selectActorInfoByMovieId(movie_id);
        return list;
    }
}
